<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <table border="1px" align="center" width="40%">
        <tr>
            <th>编号</th>
            <th>用户id</th>
            <th>钱</th>
            <th>操作</th>
        </tr>

        <c:forEach items="${list}" var="account">
            <tr>
                <td>${account.accountId}</td>
                <td>${account.uid}</td>
                <td>${account.money}</td>
                <td>
                    <a href="/delete?accountId=${account.accountId}">删除</a>
                    <a href="/update?accountId=${account.accountId}">更新</a>
                </td>
            </tr>
        </c:forEach>
        <tr>
            <td colspan="4">
                <a href="add.jsp">添加</a>
            </td>
        </tr>
    </table>
</body>
</html>
